class Person(object):
    name = ""
    age = 0
    height = 0

    # 方法参数必须以self为第一个参数
    # self代表类的实例（某个对象）
    def run(self):
        print("我是跑的功能")

    def eat(self, food):
        print("吃得东西是：" + food)

    def __init__(self, name, age, height):
        self.name = name
        self.age = age
        self.height = height


# per1 = Person()
# print(per1)

per2 = Person("zs", 18, 160)
print(per2)
print(per2.name, per2.age)
